package com.imooc.distributedemo.resume.thread;

import java.util.concurrent.CountDownLatch;
import java.util.concurrent.CyclicBarrier;
import java.util.concurrent.Semaphore;
import java.util.concurrent.locks.ReentrantLock;

public class AQSDemo {
    private ReentrantLock lock1 = new ReentrantLock();
    private ReentrantLock lock2 = new ReentrantLock();

    CountDownLatch latch1 = new CountDownLatch(3);

    Semaphore semaphore = new Semaphore(3);

    CyclicBarrier barrier = new CyclicBarrier(1);
}
